package springExtends;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyClassPathXmlApplicationContext extends ClassPathXmlApplicationContext {
    public MyClassPathXmlApplicationContext(String...configlocations){
        super(configlocations);
    }
    @Override
    protected void initPropertySources() {
        // For subclasses: do nothing by default.
        //getEnvironment().setRequiredProperties("abc");
        System.out.println("扩展initPropertrySource");
    }
//    @Override
//    protected void customizeBeanFactory(DefaultListableBeanFactory beanFactory) {
//        super.setAllowBeanDefinitionOverriding(false);
//        super.setAllowCircularReferences(false);
//        super.customizeBeanFactory(beanFactory);
//    }

}
